package service;

import entity.User;

import java.util.List;

public interface UserService {
    public int init(User user);//添加
    public User selectEmail(String email);//按email查询
    public User selectName(String username);//按名查询
    public User selectID(int id);//按ID查询
    public int update(User user);//修改
    public List<User> selectAll();//查询全部
    public User denglu(String email, String password);//登录
    public int update1(String p,int id);//修改密码
}
